/**
 * Reinit error visibility
 */
function reinitErrorVisibility() {
	// Error messages reinit
	$("#errorList").hide();
	$("#errorAddressUnknown").hide();
	$("#lat").val('');
	$("#lng").val('');
	unHighlightFields();
}

/*
 * Registration submit
 */
$(function() {
	$("#address_button").click(
			function(e) {
				waitForResult();
				reinitErrorVisibility();
				searchAddress($('#postalAddress').val() + ', '
						+ $('#postalCode').val() + ' ' + $('#city').val());
			});
});
